<!DOCTYPE html>
<html lang="zh">
<head>
    <title>编辑科室</title>
    <link rel="stylesheet" href="<?= BASE_URL ?>src/assets/css/bootstrap_5.3.2.min.css">
    <link rel="stylesheet" href="<?= BASE_URL ?>src/assets/css/style.css"></head>
<body>
<!-- 侧边栏 -->
<div class="sidebar">
    <a href="<?= BASE_URL ?>index.php" class="active">系统首页</a>
    <a href="<?= BASE_URL ?>index.php?c=department&a=index">科室信息</a>
    <a href="<?= BASE_URL ?>index.php?c=notice&a=index">公告管理</a>
    <a href="<?= BASE_URL ?>index.php?c=schedule&a=index">医生排班</a>
    <a href="<?= BASE_URL ?>index.php?c=manager&a=index">管理员信息</a>
    <a href="<?= BASE_URL ?>index.php?c=statistics&a=index">统计报表</a>
</div>
<div class="container">
    <h1 class="mt-4">编辑科室</h1>
    <form method="POST" class="mt-4">
        <div class="form-group">
            <label for="DepartmentName">科室名称</label>
            <input type="text" class="form-control" name="DepartmentName" id="DepartmentName"
                   value="<?php echo htmlspecialchars($department['DepartmentName'] ?? ''); ?>" required>
        </div>
        <div class="form-group">
            <label for="DepartmentDescription">科室描述</label>
            <textarea class="form-control" name="DepartmentDescription" id="DepartmentDescription" rows="5"
                      required><?php echo htmlspecialchars($department['DepartmentDescription'] ?? ''); ?></textarea>
        </div>
        <button type="submit" class="btn btn-primary">保存</button>
    </form>
</div>
</body>
</html>